class percent{
    public int age;
    public String name;
    public void eat() {
        System.out.println("eat");
    }
    public static void main(String[] args) {
        System.out.println(1);
    }
}
class Dog {
    public String name;
    public String color;

    public void bark() {
        System.out.println("bark");
    }
    public void wag() {
        System.out.println("wag");
    }
}
public class Test {
    public static void main(String[] args) {
        //实例化一个Dog对象
        Dog dog = new Dog();
//        dog.name = "常威";
//        dog.color = "黑色";
        System.out.println(dog.name);
        System.out.println(dog.color);

        dog.bark();
        dog.wag();
    }
}
